#include "lvgl/lvgl.h"
#include "lvgl/demos/lv_demos.h"
#include <unistd.h>
#include <pthread.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "my_codeh/speed.h"	
#include "my_codeh/event.h" 
extern int SPEED;

void speed_change(int new_speed)
{
    SPEED = new_speed;
}
void speed_add()
{   
    if(SPEED==9500000)
    {
        SPEED==9500000;
        return;
    }
    SPEED+=50000;
}
void speed_delete()
{   
    if(SPEED==0)
    {
        SPEED==0;
        return;
    }
    SPEED-=50000;
}

int get_speed()
{
    return SPEED;
}
